package com.ruoyi.radar.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.radar.domain.RadarSiloReal;
import com.ruoyi.radar.domain.RadarWarnMessage;
import com.ruoyi.radar.service.RadarWarnMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@CrossOrigin
@RestController
@RequestMapping("/radarWarnMessage")
public class RadarWarnMessageController {

    @Autowired
    private RadarWarnMessageService radarWarnMessageService;

    @GetMapping("/list")
    public AjaxResult list(@RequestParam Map<String, Object> param)
    {
        List<RadarWarnMessage> list = radarWarnMessageService.selectWarnMessage(param);
        return AjaxResult.success(list);
    }
}
